package com.qwer.controller.comm;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.qwer.model.comm.UserInfo;

public class BaseController {
    
    
    public UserInfo getLoginUser(HttpServletRequest req) {
        HttpSession session = req.getSession();
        Object o = session.getAttribute("sysUser");

        if (o == null)
            return null;
        UserInfo sysUser = (UserInfo) o;
        return sysUser;
    }
    
    
}
